<?php

class Jhub1_Form extends Zend_Form
{


   /**
     * Default display group class
     * @var string
     */
    protected $_defaultDisplayGroupClass = 'Jhub1_Form_DisplayGroup';
 
    /**
     * Constructor
     *
     * Add custom prefix path before parent constructor
     *
     * @param mixed $options
     * @return void
     */
    public function __construct($options = null)
    {
        $this->addPrefixPath('Jhub1_Form', 'Jhub1/Form');
        parent::__construct($options);
    }
 
    /**
     * Load the default decorators
     *
     * @return void
     */
    public function loadDefaultDecorators()
    {
        if ($this->loadDefaultDecoratorsIsDisabled()) {
            return;
        }
 
        $decorators = $this->getDecorators();
        if (empty($decorators)) {
            $this->addDecorator('FormElements')
	 	# ->addDecorator('Fieldset')
                 ->addDecorator('Form');
        }
    }

}
/*

ob_start();
var_dump($options['elements']);
$data = ob_get_clean();
$fp = fopen("/home/marek/BIGProjects/JHUB1ZFTEST/application/forms/textfile.txt", "w");
fwrite($fp, $data);
fclose($fp); 


ob_start();
var_dump($GLOBALS);
$data = ob_get_clean();
$fp = fopen("textfile.txt", "w");
fwrite($fp, $data);
fclose($fp); 

*/

?>
